 /*******************************************************************
* File Name  		: WF5803.H
* Description    		: 
* Created on: 2019-1-14
* Author: Admin
********************************************************************/
#ifndef  _WF5803_H_
#define  _WF5803_H_

#include "bsp.h"

#define  WF5803IICADDR    0XDA   //WF5803设备地址+默认写
void SetWF5803_I2C_ReadNByte(u8 DeviceAddr, u8 RegAddr);
void WF5803_I2C_WriteCMD(u8 DeviceAddr, u8 RegAddr, u8 CMD);
void GrokWF5803_I2C_ReadNByte(uint8_t DeviceAddr, uint8_t RegAddr, uint8_t *pBuf, uint8_t num);

void CalSensorData(float* pressure, float* temperature);

//void CalSensorData(int32_t* pressure_int, int16_t* temperature_int);

float GetPress(void);//kPa
float GetTemp(void);//°C
#endif /* _WF5803_H_ */
